home *** CD-ROM | disk | FTP | other *** search
/ Macwelt 1 / Macwelt DVD 1.toast / Software für Mac-OS X / Entwickler-Tools / netbeans / modules / ext / djava.jar / koala / dynamicjava / tree / CastExpression.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-03-14  |  1.4 KB  |  38 lines

  1. package koala.dynamicjava.tree;
  2.  
  3. import koala.dynamicjava.tree.visitor.Visitor;
  4.  
  5. public class CastExpression extends UnaryExpression {
  6.    public static final String TARGET_TYPE = "targetType";
  7.    private Type targetType;
  8.  
  9.    public Type getTargetType() {
  10.       return this.targetType;
  11.    }
  12.  
  13.    public void setTargetType(Type var1) {
  14.       if (var1 == null) {
  15.          throw new IllegalArgumentException("t == null");
  16.       } else {
  17.          ((Node)this).firePropertyChange("targetType", this.targetType, this.targetType = var1);
  18.       }
  19.    }
  20.  
  21.    public Object acceptVisitor(Visitor var1) {
  22.       return var1.visit(this);
  23.    }
  24.  
  25.    public CastExpression(Type var1, Expression var2) {
  26.       this(var1, var2, (String)null, 0, 0, 0, 0);
  27.    }
  28.  
  29.    public CastExpression(Type var1, Expression var2, String var3, int var4, int var5, int var6, int var7) {
  30.       super(var2, var3, var4, var5, var6, var7);
  31.       if (var1 == null) {
  32.          throw new IllegalArgumentException("tt == null");
  33.       } else {
  34.          this.targetType = var1;
  35.       }
  36.    }
  37. }
  38.